//webpack.config.js
const path= require('path');

module.exports={
    entry:'./src/index.js',
    output:{
        filename:'chengyuejia-lottery.js',
        path:path.resolve(__dirname,'dist'),
        library:'ChengyuejiaLottery',
        libraryTarget:'umd',
        globalObject:'this',
    },
    mode:'production'
}